<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>旅客预订酒店信息系统</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f4f4f4;
        }

        .container {
            max-width: 800px;
            margin: 20px auto;
            padding: 20px;
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }

        h1 {
            text-align: center;
            margin-bottom: 20px;
        }

        a {
            text-decoration: none;
            color: #007bff;
        }

        a:hover {
            text-decoration: underline;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 20px;
        }

        th, td {
            border: 1px solid #ddd;
            padding: 10px;
            text-align: left;
        }

        th {
            background-color: #f2f2f2;
        }

        .update-link, .delete-link {
            display: inline-block;
            padding: 6px 10px;
            background-color: #007bff;
            color: #fff;
            border-radius: 4px;
            text-decoration: none;
        }

        .update-link:hover, .delete-link:hover {
            background-color: #0056b3;
        }
    </style>
</head>
<body>
<div class="container">
    <h1>旅客预订酒店信息表系统</h1>
    <a href="studentadd" class="update-link">添加入住人</a>
    <table>
        <tr>
            <th>入住人</th>
            <th>手机号</th>
            <th>人数</th>
            <th>更改信息</th>
        </tr>
        <tr th:each="student : ${students}">
            <td th:text="${student.sname}">入住人</td>
            <td th:text="${student.age}">手机号</td>
            <td th:text="${student.course}">人数</td>
            <td>
                <a th:href="@{'update/' + ${student.sid}}" class="update-link">更新</a>
                <a th:href="@{'delete/' + ${student.sid}}" class="delete-link">删除</a>
            </td>
        </tr>
    </table>
</div>
</body>
</html>
